{% extends "site.html" %}

{% block title %}Prisijungimas prie sistemos{% endblock %}

{% block body %}
<div class="form">
  <img id="logo" src="/images/logo.png" />
  <h3 class="center">Prisijungimas prie sistemos</h3>
  {% if form.errors or error_message %}
    <p class="error">Neteisingas vartotojo vardas arba slaptažodis. Pabandykite dar kartą.</p>
  {% endif %}
  <form method="post" action="" id="login-form">
    <table>
      <tr>
        <td>Vartotojo vardas:</td>
        <td><input type="text" name="username" id="id_username" style="width: 150px" /></td>
      </tr>
      <tr>
        <td>Slaptažodis:</td>
        <td><input type="password" name="password" id="id_password" style="width: 150px"  /></td>
      </tr>
    </table>
    <br />
    <input type="submit" value="Prisijungti" />
    <input type="hidden" name="this_is_the_login_form" value="1" />
    <input type="hidden" name="next" value="{{ next }}" />
  </form>
  <br />
  <a class="smallinfo" href="/password/reset">Atstatyti slaptažodį</a>
  <script type="text/javascript">
    document.getElementById('id_username').focus()
  </script>
</div>
{% endblock %}